#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/1/24 14:01
# @Author  : yuxi
# @Site    : 
# @File    : readconfig.py
# @Software: PyCharm
import configparser
import os
import sys

con = configparser.ConfigParser()
con.readfp(open('config/server_config'))
platformName = con.get("DESIRED_CAPS", "platformName")
package = con.get("DESIRED_CAPS", "package")
activity = con.get("DESIRED_CAPS", "activity")
deviceName = con.get("DESIRED_CAPS", "deviceName")
reuse = con.get("DESIRED_CAPS", "reuse")
hostname = con.get("SERVER_URL", "hostname")
port = con.get("SERVER_URL", "port")
